cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerRaspbian forward porter <root@raspbian.org>
Fri, 2 Nov 2018 02:33:32 +0000 (02:33 +0000)
commit0d19c3df5333403cd526cc6cbd82a999b26c3803
treef39af4e4e25316b34a620a0771ea8e1fce87ced6
parent284ba5481d8d8051166d8cdf4024f871cc38a0ce
cmake: resolve symlinks in ClangConfig.cmake

Ensure that symlinks such as /usr/lib/cmake/clang-X.Y (pointing to
/usr/lib/llvm-X.Y/lib/cmake/llvm) are resolved. This ensures that
CLANG_INSTALL_PREFIX ends up to be /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
clang/cmake/modules/CMakeLists.txt